package com.crl.gServer.decoder
{
	import com.crl.game.simulation.common.BaseSimulation;
	import com.crl.game.simulation.common.decoder.IDecoder;
	import com.crl.game.simulation.server.Actor;
	import com.crl.net.transfer.Command;
	import com.crl.net.transfer.SocketCommand;
	
	public class TalkDecoder implements IDecoder
	{
		public function TalkDecoder()
		{
		}
		
		public function decode(cmd:Command,actor:Actor):void
		{
			this["t_"+cmd](cmd,actor);
		}
		
		/**
		 * 普通聊天; 
		 * @param cmd
		 * @param actor
		 * 
		 */		
		private function t_2000(cmd:Command,actor:Actor):void{
			actor.sendCommand(cmd);
		}
	}
}